package com.itany.pojo;

import java.io.Serializable;
import java.util.Date;

/**
 * Author：侍家宇
 * Date：2019-09-18 下午3:03
 * Description：<描述>
 */
public class Book implements Serializable {
    private Integer id;//书籍主键
    private String bookname;//书籍名称
    private String author;//作者
    private Date publishdate;//出版日期
    private Double groupprice;//团购价
    private Double price;//单价
    private String format;//开本
    private String pagenumber;//页数
    private String ISBN;
    private String barcode;//条形码
    private Integer layout;//版次
    private Integer printingnumber;//印刷次数
    private String register;//册数
    private String weight;//重量
    private String bookintroduce;//书籍简介
    private String authorintroduce;//作者简介
    private String catalog;//目录
    private Integer typeid;//书籍类型
    private Date createtime;//入库时间
    private Integer pressid;//出版社
    private Integer number;//库存数量
    private String imgurl;//封面图片
    private Integer flag;//状态
    private Integer recommend;//推荐类型
    private Press press;
    private Supplier supplier;

    public Book(Integer id, String bookname, String author, Date publishdate, Double groupprice, Double price, String format, String pagenumber, String ISBN, String barcode, Integer layout, Integer printingnumber, String register, String weight, String bookintroduce, String authorintroduce, String catalog, Integer typeid, Date createtime, Integer pressid, Integer number, String imgurl, Integer flag, Integer recommend, Press press, Supplier supplier) {
        this.id = id;
        this.bookname = bookname;
        this.author = author;
        this.publishdate = publishdate;
        this.groupprice = groupprice;
        this.price = price;
        this.format = format;
        this.pagenumber = pagenumber;
        this.ISBN = ISBN;
        this.barcode = barcode;
        this.layout = layout;
        this.printingnumber = printingnumber;
        this.register = register;
        this.weight = weight;
        this.bookintroduce = bookintroduce;
        this.authorintroduce = authorintroduce;
        this.catalog = catalog;
        this.typeid = typeid;
        this.createtime = createtime;
        this.pressid = pressid;
        this.number = number;
        this.imgurl = imgurl;
        this.flag = flag;
        this.recommend = recommend;
        this.press = press;
        this.supplier = supplier;
    }

    public Book() {
    }

    public Press getPress() {
        return press;
    }

    public void setPress(Press press) {
        this.press = press;
    }

    public Supplier getSupplier() {
        return supplier;
    }

    public void setSupplier(Supplier supplier) {
        this.supplier = supplier;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBookname() {
        return bookname;
    }

    public void setBookname(String bookname) {
        this.bookname = bookname;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Date getPublishdate() {
        return publishdate;
    }

    public void setPublishdate(Date publishdate) {
        this.publishdate = publishdate;
    }

    public Double getGroupprice() {
        return groupprice;
    }

    public void setGroupprice(Double groupprice) {
        this.groupprice = groupprice;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getFormat() {
        return format;
    }

    public void setFormat(String format) {
        this.format = format;
    }

    public String getPagenumber() {
        return pagenumber;
    }

    public void setPagenumber(String pagenumber) {
        this.pagenumber = pagenumber;
    }

    public String getISBN() {
        return ISBN;
    }

    public void setISBN(String ISBN) {
        this.ISBN = ISBN;
    }

    public String getBarcode() {
        return barcode;
    }

    public void setBarcode(String barcode) {
        this.barcode = barcode;
    }

    public Integer getLayout() {
        return layout;
    }

    public void setLayout(Integer layout) {
        this.layout = layout;
    }

    public Integer getPrintingnumber() {
        return printingnumber;
    }

    public void setPrintingnumber(Integer printingnumber) {
        this.printingnumber = printingnumber;
    }

    public String getRegister() {
        return register;
    }

    public void setRegister(String register) {
        this.register = register;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public String getBookintroduce() {
        return bookintroduce;
    }

    public void setBookintroduce(String bookintroduce) {
        this.bookintroduce = bookintroduce;
    }

    public String getAuthorintroduce() {
        return authorintroduce;
    }

    public void setAuthorintroduce(String authorintroduce) {
        this.authorintroduce = authorintroduce;
    }

    public String getCatalog() {
        return catalog;
    }

    public void setCatalog(String catalog) {
        this.catalog = catalog;
    }

    public Integer getTypeid() {
        return typeid;
    }

    public void setTypeid(Integer typeid) {
        this.typeid = typeid;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Integer getPressid() {
        return pressid;
    }

    public void setPressid(Integer pressid) {
        this.pressid = pressid;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public String getImgurl() {
        return imgurl;
    }

    public void setImgurl(String imgurl) {
        this.imgurl = imgurl;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public Integer getRecommend() {
        return recommend;
    }

    public void setRecommend(Integer recommend) {
        this.recommend = recommend;
    }

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", bookname='" + bookname + '\'' +
                ", author='" + author + '\'' +
                ", publishdate=" + publishdate +
                ", groupprice=" + groupprice +
                ", price=" + price +
                ", format='" + format + '\'' +
                ", pagenumber='" + pagenumber + '\'' +
                ", ISBN='" + ISBN + '\'' +
                ", barcode='" + barcode + '\'' +
                ", layout=" + layout +
                ", printingnumber=" + printingnumber +
                ", register='" + register + '\'' +
                ", weight='" + weight + '\'' +
                ", bookintroduce='" + bookintroduce + '\'' +
                ", authorintroduce='" + authorintroduce + '\'' +
                ", catalog='" + catalog + '\'' +
                ", typeid=" + typeid +
                ", createtime=" + createtime +
                ", pressid=" + pressid +
                ", number=" + number +
                ", imgurl='" + imgurl + '\'' +
                ", flag=" + flag +
                ", recommend=" + recommend +
                ", press=" + press +
                ", supplier=" + supplier +
                '}';
    }
}
